package com.speechb.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.speechb.mapper.MyDbMapper;
import com.speechb.service.IMyDBService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 博客 服务实现类
 * </p>
 *
 * @author llj
 * @since 2021-03-14
 */
@Service
@DS("slave_1")
public class MyDBServiceImpl implements IMyDBService {

    private static final Logger LOGGER = LoggerFactory.getLogger(MyDBServiceImpl.class);

    @Autowired
    MyDbMapper myDbMapper;

    @Override
    public List<Map> nativeSql(String nativeSql) {
        return myDbMapper.nativeSql(nativeSql);
    }
}
